package ygflower.dao.impl;

import org.springframework.orm.jpa.support.JpaDaoSupport;
import org.springframework.transaction.annotation.Transactional;

import ygflower.dao.FlowerDao;
import ygflower.domain.Flower;

import java.util.List;

/**
 * Created by IntelliJ IDEA.
 * User: lee
 * Date: 2010-1-26
 * Time: 21:33:59
 * To change this template use File | Settings | File Templates.
 */

public class JpaFlowerDao extends GenericDaoImpl<Flower, Integer> implements FlowerDao{
//    public List<Flower> queryAll(){
//        return getJpaTemplate().find("select b from Flower b");
//    }
//    public void create(Object flower){
//        getJpaTemplate().persist(flower);
//    }
//    public void delete(int id){
//        Flower flower = queryById(id);
//        getJpaTemplate().remove(flower);
//    }
//    public void update(Object flower ){
//        getJpaTemplate().merge(flower);
//    }
//    public Flower queryById(int id){
//        return getJpaTemplate().find(Flower.class,id);
//    }
}
